<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			/* ul li:first-child{
				background: red;
			}
			ul li:last-child{
				background: green;
			} */
			/* body p:nth-child(6){
				background: #0000FF;
			} */
			p:nth-of-type(4){
				background: red;
			}
			span:nth-of-type(1){
				background: green;
			}
			li:nth-of-type(1){
				background: #FFC0CB;
			}
		</style>
	</head>
	<body>
		<p>p1</p>
		<p>p2</p>
		<p>p3</p>
		<span>aa</span><br />
		<span>bb</span>
		<p>p4</p>
		<ul>
			<li>li1</li>
			<li>li2</li>
			<li>li3</li>
		</ul>
	</body>
</html>
